import request from '@/utils/request'
import  encryptByRsa from '@/utils/encrypt'

export function sysUserLogin(userName, password) {
  return request({
    url: '/auth/login',
    method: 'post',
    data: {
      username: userName,
      password: encryptByRsa(password),
      clientId:'d1be2f6fe9484d33b37836046ba70470',
      authType:'ACCOUNT'
    }
  })
}



export function getInfo() {
  return request({
    url: '/user/info',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}
